<?php


namespace App\Helpers;


class CodeResponse
{

    const SERVER = [-1, '服务端异常'];
    const VALIDATION_FAIL = [422, '验证失败'];
    const UPLOAD_FAIL = [990, '上传失败'];
    const DELETE_FAIL = [998, '删除失败'];
    const UPDATE_FAIL = [999, '更新失败'];
    const PERMISSIONS_FAIL = [1001, '权限错误'];

    const RESET_THE_FORM = [2005, '重置表单'];
    const NOT_ALL_DONE = [2006, '未全部完成'];

    const REDIRECT = [3001, '重定向'];

    const PARAM_FAIL = [4000, '参数错误'];
    const CONFIG_FAIL = [5000, '配置错误'];
    const ILLEGAL_REQUEST = [5001, '非法请求'];
    const REJECT_OPERATION = [5002, '拒绝操作'];

    const PAYMENT_FAIL = [7000, '支付失败'];
    const VERIFICATION_CODE_FAIL = [7100, '验证码错误'];
    const VERIFICATION_CODE_SEND_FAIL = [7101, '验证码发送失败'];
    const VERIFICATION_CODE_INVALID = [7102, '验证码无效'];

    const ACCOUNT_PASSWORD_ERROR = [11000, '账号或密码错误'];      //账号或密码错误
    const ACCOUNT_FAIL = [10000, '账号异常'];
    const OLD_PASSWORD_FAIL = [10001, '原始密码错误'];
    const ACCOUNT_IS_DISABLED = [10002, '账号被禁用'];
    const STATUS_CHANGE = [20004, '状态发生变化'];
}
